import request from '/@/utils/request'

//分页
export function page(query?: Object){
    return request({
        url:'/order/order/page',
        method:'get',
        params:query
    });
}
// 查询全部订单
export const list=(query?:Object)=>{
    return request({
        url:'/order/order/list',
        method:'get',
        params:query
    });
};
//角色查询订单信息
export function getOne(obj?: object){
    return request({
        url:'/order/order/details',
        method:'get',
        params:obj
    });
}
//查询订单表
export function getById (orderId?:string ){
    return request({
        url:`/order/order/trip/${orderId}`,
        method:'get',
    });
}

//状态修改
export function updateStutas(obj?: Object){
    return request({
        url:'/order/order/status',
        method:'put',
        data:obj
    })
}




